<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html
	class=" js flexbox flexboxlegacy canvas canvastext webgl no-touch geolocation postmessage no-websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients no-cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg no-smil svgclippaths">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


<script src="http://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<!-- 引入样式 -->
<link rel="stylesheet"
	href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script type="text/javascript" src="../js/axios.js"></script>
<script type="text/javascript" src="../js/qs.js"></script>


<link href="../css/zcss/icons.css" rel="stylesheet" type="text/css">
<link href="../css/zcss/pages.css" rel="stylesheet" type="text/css">
<link href="../css/zcss/responsive.css" rel="stylesheet" type="text/css">
<link href="../css/zcss/sweetalert.min.css" rel="stylesheet"
	type="text/css">
<link href="../css/zcss/custombox.min.css" rel="stylesheet">
<link href="../css/zcss/animate.min.css" rel="stylesheet"
	type="text/css">
<link href="../css/zcss/css.css" rel="stylesheet" type="text/css">

<link href="../css/zcss/bootstrap-datepicker3.min.css" rel="stylesheet">
<link href="../css/zcss/switchery.min.css" rel="stylesheet">
<link href="../css/zcss/bootstrap-clockpicker.min.css" rel="stylesheet">
<link href="../css/zcss/bootstrap-table.min.css" rel="stylesheet"
	type="text/css">
<link href="../css/zcss/bootstrap.min.css" rel="stylesheet"
	type="text/css">
<link href="../css/zcss/bootstrap-select.min.css" rel="stylesheet"
	type="text/css">
<link href="../css/zcss/core.css" rel="stylesheet" type="text/css">
<link href="../css/zcss/components.css" rel="stylesheet" type="text/css">

<!--图标的外部样式-->
<link href="http://cdn.xtcrm.com/cdn//v7/fm/ub/css/icons.css"
	rel="stylesheet" type="text/css">
<!--图标的外部样式-->

<link href="../css/zcss/pages.css" rel="stylesheet" type="text/css">
<link href="../css/zcss/responsive.css" rel="stylesheet" type="text/css">
<link href="../css/zcss/sweetalert.min.css" rel="stylesheet"
	type="text/css">
<link href="../css/zcss/custombox.min.css" rel="stylesheet">
<link href="../css/zcss/animate.min.css" rel="stylesheet"
	type="text/css">
<link href="../css/zcss/css.css" rel="stylesheet" type="text/css">



		<link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/plugins/toastr/toastr.min.css" rel="stylesheet">

<title>XToolsCRM - easy to Power</title>
</head>

<body class="fixed-left" onload=";" style="height:700px">


	<div class="enlarged forced" id="wrapper">

		<!-- modal qlist fields ---->
		<div tabindex="-1" class="modal fade in" id="modal_list_field"
			role="dialog" aria-hidden="true" aria-labelledby="myModalLabel"
			style="display: none;">
			<div class="modal-dialog">
				<div class="modal-content">
					<form name="form1" id="frm_list_field"
						action="/sys/de_list/set_ok.xt" method="post" target="qssub"
						novalidate="">
						<div class="modal-header">
							<button class="close" aria-hidden="true" type="button"
								data-dismiss="modal">×</button>
							<h4 class="modal-title">客户查询</h4>
						</div>
						<div class="modal-body modal-checkbox p-l-40"></div>
						<div class="modal-footer">
							<button class="btn btn-default waves-effect"
								id="btn_list_fields0" type="button">确定</button>
							<button class="btn btn-info waves-effect waves-light"
								id="btn_list_fields1" type="button">还原初始</button>
						</div>
						<input name="key" type="hidden" value=""> <input
							name="type" type="hidden" value="0">
					</form>
				</div>
			</div>
		</div>

		<!-- 页面头部开始 -->
		<!-- ========== 左侧菜单栏开始 ========== -->

		<!-- 左侧菜单栏结束 -->

		<!-- 页面头部结束 -->



		<!--UTF8-->
		<div id="del"
			style="position: absolute; visibility: hidden; &amp; amp; amp; #9; left: 0; &amp; amp; amp; #9; top: 0; width: 0; &amp; amp; amp; #9; height: 0; z-index: 100; background-color: #D4D0C8;"></div>
		<!-- basewin iframe -->

		<div tabindex="-1" class="modal fade" id="popshow_container"
			role="dialog" aria-hidden="true" aria-labelledby="myModalLabel"
			style="display: none;">
			<div class="modal-dialog modal-xg">
				<div class="modal-content" id="popshow_container_content"
					style="padding: 0px 0px; border-width: 0px; height: 0px;">
					<div class="modal-body " id="popshow" style="display: none;">
						<div id="popshowcont">
							<div id="gedit"></div>
						</div>
					</div>
				</div>
			</div>
		</div>

		<div tabindex="-1" class="modal fade" id="popact" role="dialog"
			aria-hidden="true" aria-labelledby="myModalLabel"
			style="display: none;">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button class="close" aria-hidden="true" type="button"
							data-dismiss="modal">×</button>
						<h4 class="modal-title">操作</h4>
					</div>
					<div class="modal-body"></div>
					<div class="modal-footer">
						<div id="editsublayer"
							style="position: absolute; visibility: hidden; &amp; amp; amp; #9; left: 0; &amp; amp; amp; #9; top: 0; width: 0; &amp; amp; amp; #9; height: 0;">
							<iframe name="popact_iframe" id="popact_iframe" src="/a.html"
								scrolling="no" style="width: 0; height: 0; border: 0;"></iframe>
						</div>
						<!-- <button type="button" class="btn btn-default waves-effect" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary waves-effect waves-light">保存</button> -->
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
			<!-- /.modal-dialog -->
		</div>
		<!-- /.modal -->
		<!-- 页面头部结束 -->

		<!-- ============================================================== -->
		<!-- 右侧主体内容开始-->
		<!-- ============================================================== -->
		<div class="content-page crm" style="margin: 0;">
			<div class="content" style="margin: 0;">
				<div class="container-fluid">
					<div class="row">
						<div class="col-sm-12">

							<!--这里是总的div放所有内容的-->
							<div class="allBaBox">
								<el-form :model="ruleForm" ref="ruleForm" class="demo-ruleForm">

								<div id="libnamemark" style="z-index: 0">

									<div id="libnamemark">

										<ul class="nav nav-default nav-tabs m-b-20 ">

											<li class="active"><a aria-expanded="true"
												onclick="qlist_argv_bwhere='';qlist_argv_page=1;qlist_load();libnamemark_argv_tt=0;libnamemark_load();"
												href="#" data-toggle="tab">全部仓库</a></li>
											<!--<li><a aria-expanded="false" onclick="qlist_argv_bwhere='b8@1^5`@ETPilGb';qlist_argv_page=1;qlist_load();libnamemark_argv_tt=1;libnamemark_load();" href="#" data-toggle="tab">全国仓库</a></li>
											<li><a aria-expanded="false" onclick="qlist_argv_bwhere='42@1^5`@ITPilGb';qlist_argv_page=1;qlist_load();libnamemark_argv_tt=2;libnamemark_load();" href="#" data-toggle="tab">北京仓库</a></li>
											<li><a aria-expanded="false" onclick="qlist_argv_bwhere='58@1^5`@MTPilGb';qlist_argv_page=1;qlist_load();libnamemark_argv_tt=3;libnamemark_load();" href="#" data-toggle="tab">上海仓库</a></li>
											<li><a aria-expanded="false" onclick="qlist_argv_bwhere='44@1^5`@QTPilGb';qlist_argv_page=1;qlist_load();libnamemark_argv_tt=4;libnamemark_load();" href="#" data-toggle="tab">超大规模磷酸二酯酶压顶封顶李厚霖有机硅松井石根有机硅李厚霖在地愿为连理枝封顶fds</a></li>
											<li><a aria-expanded="false" onclick="qlist_argv_bwhere='a7@1^5`@UTPilGb';qlist_argv_page=1;qlist_load();libnamemark_argv_tt=5;libnamemark_load();" href="#" data-toggle="tab">柘城有机硅为人温柔温热我热我认为热望热热我</a></li>
											<li><a aria-expanded="false" onclick="qlist_argv_bwhere='41@1^5`@YTPilGb';qlist_argv_page=1;qlist_load();libnamemark_argv_tt=6;libnamemark_load();" href="#" data-toggle="tab">李厚霖原原本本压顶霜霜标杆dsfd</a></li>
											<li><a aria-expanded="false" onclick="qlist_argv_bwhere='30@1^5`@cTPilGb';qlist_argv_page=1;qlist_load();libnamemark_argv_tt=7;libnamemark_load();" href="#" data-toggle="tab">柘城压顶无可奈何花落去李厚霖老板椅f</a></li>
											<li><a aria-expanded="false" onclick="qlist_argv_bwhere='f4@1^5`@gTPilGb';qlist_argv_page=1;qlist_load();libnamemark_argv_tt=8;libnamemark_load();" href="#" data-toggle="tab">磷酸二酯酶压顶无可奈何花落去李厚霖夺</a></li>
											<li><a aria-expanded="false" onclick="qlist_argv_bwhere='87@1^5`@kTPilGb';qlist_argv_page=1;qlist_load();libnamemark_argv_tt=9;libnamemark_load();" href="#" data-toggle="tab">23</a></li>-->
										</ul>

										<div class="pull-right m-l-15">
											<form class="dropdown-menu-right" method="POST" novalidate="">
												<div
													class="btn-group bootstrap-select form-control show-tick">
													<div class="dropdown-menu open" role="combobox">
														<div class="bs-searchbox">
															<input class="form-control" role="textbox"
																aria-label="Search" type="text" autocomplete="off">
														</div>
														<ul class="dropdown-menu inner" role="listbox"
															aria-expanded="false">
															<li class="selected" data-original-index="0"><a
																tabindex="0" role="option" aria-disabled="false"
																aria-selected="true" data-tokens="null"><span
																	class="text"> </span><span
																	class="glyphicon glyphicon-ok check-mark"></span></a></li>
															<li data-original-index="1"><a tabindex="0"
																role="option" aria-disabled="false"
																aria-selected="false" data-tokens="null"><span
																	class="text">23432</span><span
																	class="glyphicon glyphicon-ok check-mark"></span></a></li>
														</ul>
													</div>
													<select name="D1" tabindex="-98"
														class="form-control selectpicker show-tick"
														id="libnamesel"
														onchange="n=$('#libnamesel').val();if ($('#vwhere'+n).attr('pw')=='1') {qlist_argv_bwhere=$('#vwhere'+n).attr('val');qlist_argv_page=1;qlist_load();libnamemark_argv_tt=n;libnamemark_load();} else {alert('您没有这个库的权限！');}">
														<option value=""></option>
														<option value="10">23432</option>
													</select>
												</div>
												<span id="vwhere10" pw="1" val="19wETPilGb"> </span>
											</form>
										</div>
									</div>
									<style>
.dropdown-menu-right .dropdown-menu {
	position: absolute;
	top: 100%;
	right: 0;
	left: initial;
}
</style>
									<!--UTF8-->
								</div>
								<!----------------筛选、查询input代码开始-------------------->
								<div class="m-t-20">
									<div id="search" style="z-index: 0">
										<div id="editsublayer"
											style="position: absolute; visibility: hidden; &amp; amp; amp; #9; left: 0; &amp; amp; amp; #9; top: 0; width: 0; &amp; amp; amp; #9; height: 0; z-index: 100; background-color: #D4D0C8;">
											<iframe name="qssub" src="/a.html"
												style="width: 0; height: 0; border: 0;"></iframe>
										</div>
										<form name="qsearch" class="form-inline" role="form"
											onsubmit="hideDiv(); return true;" action="/system/qssub.xt"
											method="POST" target="qssub" novalidate="">

											<div class="form-group ">
												<label class="control-label col-sm-2 m-t-10"><i
													class="fa fa-filter m-r-5"></i></label>
												<div class="col-sm-10">
													<div
														class="btn-group bootstrap-select form-control show-tick">

														<el-select v-model="ruleForm.selects" slot="prepend"
															clearable placeholder="全部数据"
															style="background: #ccc;width: 113px;"> <el-option
															label="已入库" value="3021"></el-option> <el-option
															label="未入库" value="3022"></el-option> </el-select>


													</div>
												</div>

											</div>
											<div
												style="position: absolute; visibility: hidden; left: 0; top: 0; width: 0; height: 0; z-index: 100; background-color: #D4D0C8;">
												<textarea name="ids" rows="2" cols="20"></textarea>
											</div>
											<div class="form-group">

												<!--搜索栏那一块-->
												<div class="box2"
													style="width: 300px; height: 40px; margin-top: 5px;">
													<el-input placeholder="请输入内容"
														v-model="ruleForm.selectinput"> <el-button
														slot="prepend" icon="el-icon-search"
														@click="submitForm('ruleForm')"></el-button> </el-input>

												</div>

											</div>

										
										</form>


										<!--UTF8-->
									</div>
								</div>
								<!----------------列表-------------------->

								<div id="qlist" style="z-index: 0">
									<div class="row m-t-15 f-s-12" style="height: 35px;">
										<div class="col-sm-6">
											<span set-lan="html:入库单">入库单</span> <small
												class="text-muted font-13">共{{ruleForm.totalCount}}条</small>

										</div>
										<div class="col-sm-6 text-right">
											<el-button class="btn btn-white waves-effect waves-light"
												type="text" @click="centerDialogVisible = true">
											<i class="fa fa-plus-circle m-r-5"></i>新建入库单</el-button>

											<!--中间表单弹出层-->
											<el-dialog title="新建入库单" :visible.sync="centerDialogVisible"
												width="840px" center> <iframe
												src="/instockesdilog" width="800px"
												style="height: 750px; text-align: center;" frameborder="0"
												scrolling="no"></iframe> </el-dialog>
											<!--中间表单弹出层-->

										</div>
									</div>

									<div class="tab-content p-0">
										<div class="bootstrap-table m-t-10">
											<div class="fixed-table-container overflow-x-auto">
												<table class="table table-bordered table-hover table-z"
													id="qlist_table">
													<thead>
														<tr>

															<th class="th-inner">
																<p align="left">
																	<a class="na"
																		href="JavaScript:qlist_argv_orderf='id'; qlist_argv_orderv=0;qlist_load();"
																		set-lan="html:ID">ID</a>
																</p>
															</th>
															<th class="th-inner">
																<p align="left">
																	<a class="na"
																		href="JavaScript:qlist_argv_orderf='title'; qlist_argv_orderv=0;qlist_load();"
																		set-lan="html:主题">主题</a>
																</p>
															</th>
															<th class="th-inner">
																<p align="left">
																	<a class="na"
																		href="JavaScript:qlist_argv_orderf='lib'; qlist_argv_orderv=0;qlist_load();"
																		set-lan="html:仓库">仓库</a>
																</p>
															</th>
															<th class="th-inner">
																<p align="left">
																	<a class="na"
																		href="JavaScript:qlist_argv_orderf='date'; qlist_argv_orderv=0;qlist_load();"
																		set-lan="html:填单时间">填单时间</a>
																</p>
															</th>
															<th class="th-inner">
																<p align="left">
																	<a class="na"
																		href="JavaScript:qlist_argv_orderf='pu_id'; qlist_argv_orderv=0;qlist_load();"
																		set-lan="html:对应采购单">对应采购单</a>
																</p>
															</th>
															<th class="th-inner">
																<p align="left">
																	<a class="na"
																		href="JavaScript:qlist_argv_orderf='cu_id'; qlist_argv_orderv=0;qlist_load();"
																		set-lan="html:对应供应商">对应供应商</a>
																</p>
															</th>
															<th class="th-inner">
																<p align="left">
																	<a class="na"
																		href="JavaScript:qlist_argv_orderf='status'; qlist_argv_orderv=0;qlist_load();"
																		set-lan="html:状态">状态</a>
																</p>
															</th>
															<th class="th-inner">
																<p align="left">
																	<a class="na"
																		href="JavaScript:qlist_argv_orderf='who'; qlist_argv_orderv=0;qlist_load();"
																		set-lan="html:填单人">填单人</a>
																</p>
															</th>
															<th class="th-inner">
																<p set-lan="html:补单">补单</p>
															</th>
															<th class="th-inner">
																
															</th>
														</tr>
													</thead>
													<tbody class="bg-white">

														<tr v-for="(colle,i) in tableData">
															<td>
																<p align="left">{{colle.innum}}</p>
															</td>
															<td>
																<p align="left">
																	<a id="qlist_F66" @click.prevent="dodatebyid(colle.innum)"><i
																		class="fa fa-arrow-circle-right text-blue m-r-5"></i>{{colle.theme}}</a>
																</p>
															</td>
															<td>
																<p align="left">{{colle.dgsname}}</p>
															</td>
															<td>
																<p align="left">{{colle.tdate}}</p>
															</td>
															<td>
																<p align="left" v-if="colle.theme2!=null">
																	<span style="font-weight: normal; color: #9e9e9e">〖</span>{{colle.theme2}}
																	<a
																		href="javascript:vopen('/lib/purchase/detail.xt?id=51','purchase51',999,600);"><i
																		class="fa fa-folder-open m-l-5"
																		data-original-title="打开详细页面" data-toggle="tooltip"
																		data-placement="bottom"></i></a><span
																		style="font-weight: normal; color: #9e9e9e">〗</span>
																</p>
															</td>
															<td>
																<p align="left" v-if="colle.supname!=null">
																	<span style="font-weight: normal; color: #9e9e9e">〖</span>{{colle.supname}}
																	<a
																		href="javascript:vopen('/xcrm/customer/customer/detail.xt?id=107','customer107',999,600);"><i
																		class="fa fa-folder-open m-l-5"
																		data-original-title="打开详细页面" data-toggle="tooltip"
																		data-placement="bottom"></i></a><span
																		style="font-weight: normal; color: #9e9e9e">〗</span>
																</p>
															</td>
															<td>
																<p align="left">{{colle.dic_name}}</p>
															</td>
															<td>
																<p align="left">{{colle.use_name}}</p>
															</td>
															<td>
																<p>否</p>
															</td>
															<td width="1%" nowrap="" v-if="colle.dic_name=='未入库'">
																<a @click="deletes(colle.innum)"  data-original-title="撤销"  title="撤销" data-toggle="tooltip" data-placement="bottom"><i class="ion-arrow-return-left m-r-5"></i></a>&nbsp;
																
																<a @click="dodetail(colle.innum)" data-original-title="编辑明细，确认入库" title="编辑明细，确认入库" data-toggle="tooltip" data-placement="bottom" style="cursor: pointer;"><i class="ti-marker-alt m-r-5"></i></a>&nbsp;
																
																<a @click.prevent="updatebyid(colle.innum)" data-original-title="编辑" title="编辑" data-toggle="tooltip" data-placement="bottom" style="cursor: pointer;"><i class="fa fa-pencil m-r-5"></i></a>&nbsp;	
															
															</td>
														</tr>
														
														
														<!--中间入库表单信息弹出层-->
														<el-dialog title="入库单"
															:visible.sync="centerDialogVisible3" width="900px" center>

														<iframe :src="iframdilog2" width="850"
															style="text-align: center;"
															frameborder="0" scrolling="no" onload="this.height=this.contentWindow.document.body.scrollHeight,this.width = this.contentWindow.document.body.scrollWidth"></iframe> 
														</el-dialog>

														<!--中间修改表单弹出层-->
														<el-dialog title="修改入库单"
															:visible.sync="centerDialogVisible2" width="900px" center>

														<iframe :src="iframdilog" width="850"
															style="text-align: center;"
															frameborder="0" scrolling="no" onload="this.height=this.contentWindow.document.body.scrollHeight,this.width = this.contentWindow.document.body.scrollWidth"></iframe> 
														</el-dialog>

													</tbody>
												</table>
											</div>
										</div>
										<div class="row m-t-10">
											<div class="col-sm-3">&nbsp;</div>
											<div class="col-sm-7 text-center">
											

												<!--分页-->
												<div class="col-sm-7 text-center box4">
													<div class="block">
														<el-pagination @size-change="handleSizeChange"
															@current-change="handleCurrentChange"
															:current-page="ruleForm.currentPage"
															:page-size="ruleForm.pagesize"
															layout="total, prev, pager, next, jumper"
															:total="ruleForm.totalCount"> </el-pagination>
													</div>
												</div>
												<!--分页-->

											
											</div>
											<div class="col-sm-2 text-right">
												<!-- BEGIN qqhide -->
												<a class="btn btn-white btn-custom waves-light"
													href="/system/kingdee/kingdee.xt?db_name=libin&amp;time=1551100240&amp;w=a5gATPnFGbmRGI&amp;crc=f1f21a2906469ebcca8086940990f5c9"
													target="_blank" data-original-title="导出金蝶对接Excel"
													data-toggle="tooltip" data-placement="bottom"><i
													class="fa fa-file-excel-o"></i></a> <a
													class="btn btn-white btn-custom waves-light"
													href="/system/runmod_print.xt?where=&amp;bwhere=&amp;page=&amp;orderf=&amp;orderv=&amp;pn=&amp;customer_phone_show=1&amp;sid=123&amp;ssn=jb5d9da7u0fu7ka98b26ipsli2&amp;ccn=d002&amp;cr=fb9c2e8b4b699058086b31a5c04cb4e6&amp;ma=b511e21958203567a43b58f893fb5442&amp;scname=libin&amp;comname=qlist&amp;modcr=dd56bbd8dea2bd2bb02d767f9106050f&amp;customer_phone_show=1&amp;cv=,search,qlist,&amp;qlist_print=1"
													target="_blank" data-original-title="打印列表"
													data-toggle="tooltip" data-placement="bottom"><i
													class="fa fa-print"></i></a> <a
													class="btn btn-white btn-custom  waves-effect waves-light"
													href="/setup/setup.xt?func=s_table&amp;dt=libin"
													target="_blank" data-original-title="导出Excel权限"
													data-toggle="tooltip" data-placement="bottom"><i
													class="fa fa-cog"></i></a>&nbsp;
												<button
													class="btn btn-white btn-custom  waves-effect waves-light"
													onclick="$('form[name=outexcel]').submit();return false;"
													data-original-title="导出Excel格式数据" data-toggle="tooltip"
													data-placement="bottom">
													<i class="fa fa-file-excel-o"></i>
												</button>
												<!-- END qqhide -->
											</div>
										</div>
									</div>
									<!--UTF8-->
									<form name="outexcel" action="/sys/plist/listout.xt"
										method="POST" novalidate="">
										<input name="dt" type="hidden" value="libin"><input
											name="w" type="hidden" value="a5gATPnFGbmRGI"><input
											name="dcr" type="hidden" value="6ec00">
									</form>
									<form name="actname1" action="/sys/cupool/listout.xt"
										method="POST" novalidate="">
										<input name="dt" type="hidden" value="libin"><input
											name="w" type="hidden" value="a5gATPnFGbmRGI"><input
											name="dcr" type="hidden" value="6ec00"><input
											name="modparam" type="hidden" value="">
									</form>
								</div>
								<!----------------统计-------------------->
								<div id="statlist" style="z-index: 0"></div>

								</el-form>
							</div>
							<!--这里是总的div放所有内容的-->
							
								  <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>



    <!-- 自定义js -->
    <script src="js/content.js?v=1.0.0"></script>


    <!-- Toastr script -->
    <script src="js/plugins/toastr/toastr.min.js"></script>
							<script type="text/javascript">
							
					
							 
									var vm = new Vue({
										el: ".allBaBox",
										data: {
											centerDialogVisible:false,
											allMoney:"",
											allhuikuan:"",
											allyeshuikuan:"",
											iframdilog:"",
											iframdilog2:"",
											dialogVisible: false,
											centerDialogVisible2:false,
											centerDialogVisible3:false,
											select: "全部数据",
											//表格当前页数据
			               					tableData: [],
											ruleForm: {
											    //下拉条件按钮
											    selects: "全部数据",
												//搜索框
												selectinput: '',
												//下拉条件按钮
												selectend: '',
											    //默认每页数据量
				              				    pagesize:10,
				              				    //当前页码
				               				    currentPage: 1,
				               				    //默认数据总数
				              					totalCount: ''
						      				    },deletids:""
						      				   
										},
										methods: {
											deletes(ids){
												
												//post提交数据
												axios.post("/depot/instockesdetailreturn",
													//参数转换
													Qs.stringify({"ids":ids}, {
														arrayFormat: 'brackets'
													})		
												).then(function(v) {
													window.location.href="/instockes";
													console.info(v.data); 
												}).catch(function(e) {
													alert("出错了"+e);
												}); 
											},

											dodetail(ids){
												//编辑明细信息
												//alert(ids);
												window.location.href="/instockesdetail?ids="+ids;
											},
											dodatebyid:function(c){
												 //alert(c);
												 this.iframdilog2="/instockesdilogup0?ids="+c;
												 this.centerDialogVisible3 = true;
											    },
											updatebyid:function(c){
												 //alert(c);
												 this.iframdilog="/instockesdilogup?ids="+c;
												 this.centerDialogVisible2 = true;
											    },
							                handleSizeChange(val) {
												console.log('每页 ${val} 条');
												this.ruleForm.pagesize = val;
										        console.log( this.ruleForm.pagesize+'条');
										        //this.ruleFormloadData();
											},
											handleCurrentChange(val) {
												this.ruleForm.currentPage = val;
											    console.log(this.ruleForm.currentPage+'当前');
											    this.loadData();
											},
											submitForm(formName) {
												//验证方法
												this.$refs[formName].validate((valid) => {
													if(valid) {
														//alert("aa");
														this.loadData(this.currentPage, this.pagesize);
													} else {
														//alert("aa");
														console.log('error submit!!');
														return false;
													}
												});
											},
											//从服务器读取数据
							                loadData: function(pageNum, pageSize){  
							                	 var iosnn=this;
													//post提交数据
													axios.post("/depot/instockes2",
														//参数转换
														Qs.stringify(this.ruleForm, {
															arrayFormat: 'brackets'
														})		
													).then(function(v) {
														iosnn.tableData = v.data.list;
														iosnn.ruleForm.totalCount = v.data.total;
														var strs=0;
														var huikuan=0.0;
														iosnn.tableData.forEach(v => {
															//  strs +=v.dtotal;
															/*  if (v.ded_sumprice!=null) {
																 huikuan+=v.ded_sumprice;
															} */
															
															 
														}) 
														//iosnn.allMoney=strs;
														//iosnn.allhuikuan=huikuan;
														//iosnn.allyeshuikuan=yeshuikuan; 
														console.info(v.data.list); 
													}).catch(function(e) {
														alert("出错了"+e);
													}); 
							                }
							                	
										      
										},
										mounted() {
											  var iosnn=this;
												//post提交数据
												axios.post("/depot/instockes",
													//参数转换
													Qs.stringify(this.ruleForm, {
														arrayFormat: 'brackets'
													})		
												).then(function(v) {
													iosnn.tableData = v.data.list;
													iosnn.ruleForm.totalCount = v.data.total;
													 var strs=0;
													var huikuan=0.0;
													iosnn.tableData.forEach(v => {
														 // strs +=v.dtotal;
														/*  if (v.ded_sumprice!=null) {
															 huikuan+=v.ded_sumprice;
														} */ 
														//console.info(v.wcx); 
														
														 
													}) 
													//iosnn.allMoney=strs;
													//iosnn.allhuikuan=huikuan;
													//iosnn.allyeshuikuan=yeshuikuan; 
													console.info(v.data.list); 
												}).catch(function(e) {
													alert("出错了"+e);
												});  
											
												//从新增窗口跳转回来的话则..
												if (${shelfs}!=null) {
													var shelfs=${shelfs};
													if (shelfs>0) {
														var i = -1;
											            var toastCount = 0;
											            var $toastlast;
											            	 var shortCutFunction = 'success';
											               
											                var toastIndex = toastCount++;
											                toastr.options = {
											  "closeButton": true,
											  "debug": false,
											  "progressBar": true,
											  "positionClass": "toast-top-right",
											  "onclick": null,
											  "showDuration": "400",
											  "hideDuration": "1000",
											  "timeOut": "7000",
											  "extendedTimeOut": "1000",
											  "showEasing": "swing",
											  "hideEasing": "linear",
											  "showMethod": "fadeIn",
											  "hideMethod": "fadeOut"
											};
											                   var msg = shelfs+" 入库单新建成功！";
											                var title = "成功";
											                $("#toastrOptions").text("Command: toastr[" + shortCutFunction + "](\"" + msg + (title ? "\", \"" + title : '') + "\")\n\ntoastr.options = " + JSON.stringify(toastr.options, null, 2));
											                var $toast = toastr[shortCutFunction](msg, title); 
											                $toastlast = $toast;
											                if ($toast.find('#okBtn').length) {
											                    $toast.delegate('#okBtn', 'click', function () {
											                        alert('you clicked me. i was toast #' + toastIndex + '. goodbye!');
											                        $toast.remove();
											                    });
											                }
											                if ($toast.find('#surpriseBtn').length) {
											                    $toast.delegate('#surpriseBtn', 'click', function () {
											                        alert('Surprise! you clicked me. i was toast #' + toastIndex + '. You could perform an action here.');
											                    });
											                }
											            
													}else if (shelfs==2){
														alert("2");
													} 
												}
												

										}
										
									})
								</script>
								
								
							
    
    
								


						</div>
					</div>

				</div>

			</div>


		</div>

		<!-- ============================================================== -->
		<!-- 右侧主体内容结束 -->
		<!-- ============================================================== -->

	</div>
</body>
<!--UTF8-->

</html>